using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Trap : MonoBehaviour
{
     void OnTriggerStay2D(Collider2D other)
    {
        MyRuby pc = other.GetComponent<MyRuby>();
        if (pc !=null)
        {
            pc.ChangeHealth(-1);
        }
    }

}
